/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_areainfo")
//@NamedQueries({@NamedQuery(name = "TAreainfo.findAll", query = "SELECT t FROM TAreainfo t"), @NamedQuery(name = "TAreainfo.findByAreaid", query = "SELECT t FROM TAreainfo t WHERE t.areaid = :areaid"), @NamedQuery(name = "TAreainfo.findByArealevel", query = "SELECT t FROM TAreainfo t WHERE t.arealevel = :arealevel"), @NamedQuery(name = "TAreainfo.findByAreaname", query = "SELECT t FROM TAreainfo t WHERE t.areaname = :areaname"), @NamedQuery(name = "TAreainfo.findByUpareaid", query = "SELECT t FROM TAreainfo t WHERE t.upareaid = :upareaid")})
public class TAreainfo implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "areaid")
    private Integer areaid;
    @Column(name = "arealevel")
    private Integer arealevel;
    @Column(name = "areaname")
    private String areaname;
    @Column(name = "upareaid")
    private Integer upareaid;
    @Column(name = "area_code")                
	private String area_code; 

    public TAreainfo() {
    }

    public TAreainfo(Integer areaid) {
        this.areaid = areaid;
    }

    public Integer getAreaid() {
        return areaid;
    }

    public void setAreaid(Integer areaid) {
        this.areaid = areaid;
    }

    public Integer getArealevel() {
        return arealevel;
    }

    public void setArealevel(Integer arealevel) {
        this.arealevel = arealevel;
    }

    public String getAreaname() {
        return areaname;
    }

    public void setAreaname(String areaname) {
        this.areaname = areaname;
    }

    public Integer getUpareaid() {
        return upareaid;
    }

    public void setUpareaid(Integer upareaid) {
        this.upareaid = upareaid;
    }

    public String getArea_code() {
		return area_code;
	}

	public void setArea_code(String area_code) {
		this.area_code = area_code;
	}

	@Override
    public int hashCode() {
        int hash = 0;
        hash += (areaid != null ? areaid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TAreainfo)) {
            return false;
        }
        TAreainfo other = (TAreainfo) object;
        if ((this.areaid == null && other.areaid != null) || (this.areaid != null && !this.areaid.equals(other.areaid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TAreainfo[areaid=" + areaid + "]";
    }

}
